package com.drive.mapper;

import com.drive.bean.Coach;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

/**
 * @author 往
 * 教练管理mapper层
 */
public interface CoachMapper {
    void add(Coach coach);

    void setCoachAndStudent(Map<String, Integer> map);

    Page<Coach> selectByCondition(String queryString);

    Coach findById(Integer id);

    void deleteAssciation(Integer id);

    void edit(Coach coach);

    List<Integer> findStudentIdByCoachId(Integer id);

    void deleteById(Integer id);

    List<Coach> findAll();

}
